home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / tools / c2latex.lha / c++2latex / demo.c < prev    next >
Text File  |  1993-08-08  |  2KB  |  55 lines

  1. /
  2. /  Copyright (c) 1991 University of Dortmund
  3. /
  4. /  Permission to use, copy, modify, distribute, and sell this software and its
  5. /  documentation for any purpose is hereby granted without fee, provided
  6. /  that the above copyright notice appear in all copies and that both that
  7. /  copyright notice and this permission notice appear in supporting
  8. /  documentation, and that the name of UNIDO not be used in advertising or
  9. /  publicity pertaining to distribution of the software without specific,
  10. /  written prior permission.  UNIDO makes no representations about
  11. /  the suitability of this software for any purpose.  It is provided "as is"
  12. /  without express or implied warranty.
  13. /
  14. /  UNIDO DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15. /  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
  16. /  IN NO EVENT SHALL UNIDO BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17. /  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
  18. /  FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  19. /  CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  20. /  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21. /
  22.  
  23. *
  24.  *    this is a comment
  25.  */
  26.  
  27. * NOARGS */
  28. ain (argc, argv)
  29. nt argc;
  30. har **argv;
  31.  
  32.     int a; // this is a variable
  33.     int b; /* another variable */
  34.  
  35.     // busy doing nothing...
  36.     int c;
  37.  
  38.         /* no more */
  39.     int d;
  40.  
  41.     switch (something) {
  42.         case THISCASE:
  43.             something = 99; // who knows why?
  44.             break;
  45.         case default:
  46.             somethingelse = 100; // completetly arbitrary
  47.             break;
  48.     } // end of switch
  49.  
  50.     for (i=0; i<j; i++) {
  51.     } /* loop */
  52.  
  53.     return (0);
  54.  /* end of main */
  55.